package com.sixmac.intercept;

import com.sixmac.core.aop.AopContext;
import com.sixmac.core.meta.PageIntercept;
import com.sixmac.core.toolbox.grid.BladePage;
import com.sixmac.core.toolbox.support.Convert;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2018/9/30.
 */
public class RoomApplicationIntercept extends PageIntercept {
    public void queryAfter(AopContext ac) {
        BladePage<Map<String, Object>> page = (BladePage<Map<String, Object>>) ac.getObject();
        List<Map<String, Object>> list = page.getRows();
        for (Map<String, Object> map : list) {
            int id = Convert.toInt(map.get("id"));
        }
    }
}
